﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CNVP.Config
{
    public class UIPicAddWaterConfig
    {
        /// <summary>
        /// 小缩列图大小
        /// </summary>
        public static string SmallWidth = PicAddWaterConfig.GetConfigValue("SmallWidth");
        /// <summary>
        /// 中缩列图大小
        /// </summary>
        public static string MiddleWidth = PicAddWaterConfig.GetConfigValue("MiddleWidth");
        /// <summary>
        /// 大缩列图大小
        /// </summary>
        public static string BigWidth = PicAddWaterConfig.GetConfigValue("BigWidth");
        /// <summary>
        /// 是否开启文字水印 -开启“1”，关闭“0”
        /// </summary>
        public static string IsTextWatermark = PicAddWaterConfig.GetConfigValue("IsTextWatermark");
        /// <summary>
        /// 文字水印-文字
        /// </summary>
        public static string TextWatermark = PicAddWaterConfig.GetConfigValue("TextWatermark");
        /// <summary>
        /// 文字类型
        /// </summary>
        public static string TextFont = PicAddWaterConfig.GetConfigValue("TextFont");
        /// <summary>
        /// 文字大小(小)
        /// </summary>
        public static string TextSmallFontSize = PicAddWaterConfig.GetConfigValue("TextSmallFontSize");
        /// <summary>
        /// 文字大小(中)
        /// </summary>
        public static string TextMiddleFontSize = PicAddWaterConfig.GetConfigValue("TextMiddleFontSize");
        /// <summary>
        /// 文字大小(大)
        /// </summary>
        public static string TextBigFontSize = PicAddWaterConfig.GetConfigValue("TextBigFontSize");
        /// <summary>
        /// 文字大小（原图）
        /// </summary>
        public static string TextOriginalFontSize = PicAddWaterConfig.GetConfigValue("TextOriginalFontSize");
        /// <summary>
        /// 文字颜色
        /// </summary>
        public static string TextFontColor = PicAddWaterConfig.GetConfigValue("TextFontColor");
        /// <summary>
        /// 文字位置-X轴
        /// </summary>
        public static string TextFloatX = PicAddWaterConfig.GetConfigValue("TextFloatX");
        /// <summary>
        /// 文字位置-Y轴
        /// </summary>
        public static string TextFloatY = PicAddWaterConfig.GetConfigValue("TextFloatY");
        /// <summary>
        /// 是否开启图片水印- -开启“1”，关闭“0”
        /// </summary>
        public static string IsImageWatermark = PicAddWaterConfig.GetConfigValue("IsImageWatermark");
        /// <summary>
        /// 图片水印-路径
        /// </summary>
        public static string ImageWatermark = PicAddWaterConfig.GetConfigValue("ImageWatermark");
        /// <summary>
        /// 图片位置-X轴
        /// </summary>
        public static string ImageFloatX = PicAddWaterConfig.GetConfigValue("ImageFloatX");
        /// <summary>
        /// 图片位置-Y轴
        /// </summary>
        public static string ImageFloatY = PicAddWaterConfig.GetConfigValue("ImageFloatY");
        /// <summary>
        /// 刷新缓存
        /// </summary>
        public static void RefurbishCatch()
        {
            SmallWidth = PicAddWaterConfig.GetCatchParam("SmallWidth");
            MiddleWidth = PicAddWaterConfig.GetCatchParam("MiddleWidth");
            BigWidth = PicAddWaterConfig.GetCatchParam("BigWidth");
            IsTextWatermark = PicAddWaterConfig.GetCatchParam("IsTextWatermark");
            TextWatermark = PicAddWaterConfig.GetConfigValue("TextWatermark");
            TextFont = PicAddWaterConfig.GetCatchParam("TextFont");
            TextSmallFontSize = PicAddWaterConfig.GetCatchParam("TextSmallFontSize");
            TextMiddleFontSize = PicAddWaterConfig.GetCatchParam("TextMiddleFontSize");
            TextBigFontSize = PicAddWaterConfig.GetCatchParam("TextBigFontSize");
            TextOriginalFontSize = PicAddWaterConfig.GetCatchParam("TextOriginalFontSize");
            TextFontColor = PicAddWaterConfig.GetCatchParam("TextFontColor");
            TextFloatX = PicAddWaterConfig.GetCatchParam("TextFloatX");
            TextFloatY = PicAddWaterConfig.GetCatchParam("TextFloatY");
            IsImageWatermark = PicAddWaterConfig.GetCatchParam("IsImageWatermark");
            ImageWatermark = PicAddWaterConfig.GetCatchParam("ImageWatermark");
            ImageFloatX = PicAddWaterConfig.GetCatchParam("ImageFloatX");
            ImageFloatY = PicAddWaterConfig.GetCatchParam("ImageFloatY");
        }
    }
}